import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import './works-base.scss'
class Com extends Component {
  constructor(props) {
    super(props);
    this.state = {}
  }
  // 未登录的小列表
  render () {
    return (
      <div className="works-nav">
        <ul>
          {
            this.props.list.map((item, index) => {
              return (
                <li key = { index }>
                  <NavLink to={ item.path }> { item.name }</NavLink>
                </li>
              )
            })
          }
        </ul>
      </div>
    )
  }
}

export default Com;